/**
 * 引入插件
 */
import Vue from 'vue'
import App from './App'
import 'es6-promise/auto'
import Vuex from 'vuex'
import axios from 'axios'
import EasyUI from 'vx-easyui'
import ElementUI from 'element-ui'
//import VueAwesomeSwiper from 'vue-awesome-swiper'
/**
 * 引入插件样式
 */
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'
import 'font-awesome/css/font-awesome.min.css'
import 'vx-easyui/dist/themes/material/easyui.css'
import 'vx-easyui/dist/themes/icon.css'
import 'vx-easyui/dist/themes/vue.css'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
/**
 * 引入自定义
 */
import router from './router'
import {postRequest, getRequest, globalHost} from './assets/js/httpIntercept'
import TemplateOfList1 from './components/customComponent/TemplateOfList1'
import TemplateOfList2 from './components/customComponent/TemplateOfList2'
/**
 * 注册全局插件
 */
Vue.use(EasyUI); // 注册插件（该插件是一个对象）
Vue.use(ElementUI, {size: 'small', zIndex: 9999});
Vue.use(Vuex);
//Vue.use(VueAwesomeSwiper, /* { default global options } */);
Vue.prototype.$globalHost = globalHost;
Vue.prototype.$axios = axios;
Vue.prototype.$postRequest = postRequest;
Vue.prototype.$getRequest = getRequest;
Vue.component('TemplateOfList1', TemplateOfList1);
Vue.component('TemplateOfList2', TemplateOfList2);

/**
 * 初始化Vue实例，用根组件（App）替换index.html中的<div id="app"><div>元素初始化页面
 */
Vue.config.productionTip = false; // 关闭生产模式下给出的提示
new Vue({
  el: '#app', // 代表index.html中的<div id="app"><div>元素
  components: {App}, // 根组件
  template: '<App/>', // 根组件中的模板
  router // 路由插件
});
